//
//  ClockListViewController.swift
//  SKClock
//
//  Created by Sky-work on 2021/12/22.
//

import UIKit

class ClockListViewController: UIViewController {
    lazy var clock = SKClock.shared

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        setupUI()
    }
    

    private func setupUI() {
        view.backgroundColor = UIColor.white
        
        
    }
    
    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        super.touchesBegan(touches, with: event)
        
//        testClock()
        
        
        navigationController?.pushViewController(ViewController(), animated: true)
    }

    
    func testClock() {
        let model = ClockModel()
        model.title = "测试闹钟"
        
        let item = ClockItemModel()
        item.title = "haha"
        item.time = 50 //"2021-12-22 16:30"
        
        model.items = [item]
        
        clock.add(model)
    }
    
    
    
    
}
